// ProductCommand.java
package com.example.javawebdemo.command;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

/*
3.命令模式 (Command Pattern) - 解耦ProductServlet
 */

public interface ProductCommand {
    void execute(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
